package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.ReturnGoodsOrderDao;
import com.ericom.model.ReturnGoodsOrder;
import com.ericom.service.ReturnGoodsOrderManager;

@Service("returnGoodsOrderManager")
public class ReturnGoodsOrderManagerImpl extends
		GenericManagerImpl<ReturnGoodsOrder, Long> implements
		ReturnGoodsOrderManager {

	ReturnGoodsOrderDao returnGoodsOrderDao;

	@Autowired
	public ReturnGoodsOrderManagerImpl(ReturnGoodsOrderDao returnGoodsOrderDao) {
		super(returnGoodsOrderDao);
		this.returnGoodsOrderDao = returnGoodsOrderDao;
	}

	@Override
	public List<ReturnGoodsOrder> findReturnGoodsByOrder(Long orderId) {

		return returnGoodsOrderDao.findReturnGoodsByOrder(orderId);
	}

}
